package com.smile.lyh.service;

import com.smile.spring.Autowired;
import com.smile.spring.BeanNameAware;
import com.smile.spring.Component;


/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/12/11 17:50
 */
@Component
public class UserService implements UserInterface, BeanNameAware {

    @Autowired
    private OrderService orderService;

    @Override
    public void setBeanName(String name) {
        System.out.println("UserService myname is "+name);
    }

    @Override
    public void test() {
        System.out.println("UserService test && orderService :"+orderService);
    }
}
